<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="../js/angular.min.js"></script>
</head>
<body>
    <div ng-app="myapp" ng-controller="myctrl">
        <div>
            <input type="text" name="name" ng-model="name">
        </div>
        <div>
            Hello, {{name}}
        </div>
    </div>
</body>
<script>
    var myapp = angular.module("myapp", []);
    myapp.controller("myctrl", ["$scope", function($scope){
        $scope.name="黑马程序员";
    }]);
</script>
</html>